<template>
  <div class="ek-desc">
    <div class="desc-title">
      {{ props.title }}
    </div>
    <div class="desc-desc">
      {{ props.desc }}
    </div>
    <slot>
      <div class="desc-extra" @click="handleClick">
        <i class="icon iconfont icon-dingdanguanli f-14"></i>
        <span class="f-12 ml-4">使用指南</span>
      </div>
    </slot>
  </div>
</template>
<script setup>
const props = defineProps({
  title: {
    type: String,
    default: "数据集",
  },
  desc: {
    type: String,
    default: "zsdasasd",
  },
});

const emit = defineEmits(["click"]);
const handleClick = () => {
  emit("click");
};
</script>
<style lang="scss" scoped>
.ek-desc{
  padding: 30px;
  background: #fff;
  border-radius: 4px;
  text-align: left;
}
.desc-title {
  font-size: 16px;
  font-weight: 500;
}
.desc-desc {
  margin-top: 10px;
  font-size: 12px;
  color: #909399;
}
.desc-extra {
  cursor: pointer;
  margin-top: 10px;
  font-size: 12px;
  color: #909399;
  i {
    color: var(--el-color-primary);
  }
}
</style>
